package com.xrui.hbase.filter;

import org.codehaus.jackson.JsonNode;

/**
 * Responsible for de-serializing RowFilters from the results of a call to
 * {@link RowFilter#toJson}.
 */
public interface RowFilterDeserializer {
    /**
     * Deserialize JSON into a {@code RowFilter}.
     *
     * @param root the {@code JsonNode} holding the contents of the filter
     * @return a fully populated and operable {@code RowFilter}
     */
    RowFilter createFromJson(JsonNode root);
}
